package com.qf.service.impl;

import com.qf.dao.CityMapper;
import com.qf.pojo.City;
import com.qf.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {

    @Autowired
    CityMapper cityMapper;
    @Override
    public List SelectAllCity(Integer pid) {
        return cityMapper.selectAllCity(pid);
    }

    @Override
    public City getAndBackCity(Integer id) {
        return cityMapper.getAndBackCity(id);
    }
}
